let sum = 0;

for (let i = 0; i <= 7; i++) {
  sum += 1 * Math.pow(2, i);
}
console.log(sum);

console.log();
